#!/bin/bash
file_name=functions.sh
funcs=`which $file_name`
if [ "$funcs" != "" ] ;then
  echo "funcs=$funcs"
  . $funcs
else
  funcs=`dirname $0`/$file_name
  echo "$PWD"
  echo "funcs=$funcs"
  if [ "$funcs" != "" ] ;then
    . $funcs
  else
    exit
  fi
fi

function sh_setup_dns()
{
local mount_point=/opt
local ac_config=/tmp/resolv.conf
if sh_at_home; then
  echo ""
else
  echoTextBlue "Setting for comp"
  cp /etc/resolv.conf $ac_config -rf
  sh_sed_file_d_row_include_xxx $ac_config nameserver
  echo "nameserver 172.20.120.254">>$ac_config
fi
}
sh_setup_dns
